home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
asmutil
/
disasm.zip
/
PCUTIL.DOC
< prev
next >
Wrap
Text File
|
1988-06-03
|
6KB
|
166 lines
This program provides several functions that would normally be separate
commands. The intent is to provide as many simple functions as possible
within a 2K .COM file rather than many 1K/.5K .COM files.
Note: Only the first two characters of any parameter is checked.
Syntax:
PCUTIL [NUm] { [ON/OFf] }
[CAp] { [ON/OFf] }
or
PCUTIL [MOno ]
[COlor] { [40] [80] }
[SWap ]
or
PCUTIL [SEtcolor] XIYIZIN
or
PCUTIL [DIal]
[DIal] { [T]|[P] xxx-xxxx}
or
PCUTIL [BEep]
or
PCUTIL [WAit]
Copyright (c) 1983 A. Norris Couch
Rights granted to distribute this routine with the inclusion of this notice
but not for profit.
This author makes no warranty, expressed or implied, as to the correct
nature and operation of this software.
NUm:
Change (toggle) the Num Lock state. ON sets Num Lock on and OFf Num Lock
off. The is no default.
CAp:
Change (toggle) the Caps Lock state. ON sets Caps Lock on and OFf Caps Lock
off. There is no default.
MOno:
Switch the active display to the monochrome display on systems that have a
monochrome display. This will cause the monochrome display to be cleared.
COlor:
Switch the active monitor to the color display on systems that have a color
display. 40 or 80 will set the column width. This will cause the color
display to be cleared. There is no default.
SWap:
Switch (toggle) the active display to the currently inactive display on
systems that have both displays. This is the same as issuing a MOno or
COlor 80. This will toggle in 80 column mode only.
DIal:
DIal command by itself will hang up the phone and drop data terminal ready.
DIal followed by a T or P will "touch tone (T)" or "rotary (P)" dial the
telephone number following the T or P. DIal will also initialize the modem
to 1200 baud so the Hayes will recognize the command. This will not work
with non Hayes compatible modems.
BEep:
Sounds the speaker. This can be used in a BAT to indicate end of job for
example.
WAit:
Causes the PC to wait for N seconds before continuing. This number should
not exceed 3000. To wait longer use multiple WAit multiple times.
SEtcolor:
Format of the input parameters is shown below:
SEtcolor XIYIZI [ and followed immediately by the optional mode # ].
Where 'X' is the foreground color, 'Y' is the background color and 'Z' is
the border color.
The following letters are the valid input characters that are substituted
for 'X', 'Y' and 'Z':
The letter Z or z is used for BLACK, the letter B or b is used for BLUE,
the letter G or g is used for GREEN, the letter C or c is used for CYAN,
the letter R or r is used for RED, the letter M or m is used for MAGENTA,
the letter Y or y is used for YELLOW and the letter W or w is used for
WHITE.
The following letters are the valid input characters that are substituted
for 'I':
The letter L or l is used for Low Intensity, the letter H or h is used
for High Intensity.
INPUT EXAMPLES:
The 40x25 B&W or COLOR and the 80x25 B&W or COLOR modes have the same input
format. The GRAPHICS modes have input formats different from the ALPHA
modes.
SEtcolor WHZLZL [ 0 or 1 ] <cr>
Puts the color display adapter into the 40 x 25 ALPHA COLOR MODE.
[H]igh Intensity [W]hite foreground, [L]ow Intensity [Z]Black background
and [L]ow Intensity [Z]Black border.
SEtcolor WHBHRL [ 2 or 3 ] <cr>
Puts the color display adapter into the 80 x 25 ALPHA COLOR MODE.
[H]igh Intensity [W]hite foreground, [H]igh Intensity [B]lue background
and [L]ow Intensity [R]ed border.
SEtcolor GHZLZL6 <cr>
Puts the color display adapter into the 640 x 200 "B & W" GRAPHICS MODE.
[H]igh Intensity [G]reen foreground, [L]ow Intensity [Z]Black background
and [L]ow Intensity [Z]Black border. The background and border are dummy
parameters.
SEtcolor ZLBHZH4 <cr>
Puts the color display adapter into the 320 x 200 COLOR GRAPHICS MODE.
An analysis of the Input Parameter Format for the 320 x 200 graphics modes
is required to understand the result of the above entry will produce.
The 320 x 200 B & W or COLOR GRAPHICS ENTRY FORMAT
The (Z) represents a dummy parameter. It serves only to prevent the error
message, " ERROR IN THE INPUT STRING".
SEtcolor X I Y I (Z) I [ optional mode set, either 4 or 5 ]
SEtcolor X............ The 'X' parameter of the foreground color can be
any of the the Valid Input Characters as listed under the heading INPUT
PARAMETER FORMAT. Letters Z, B, G, C, repeat the results produced by
typing the letters, R, M, Y, W.
'Z' through 'C' as well as 'R' through 'W' represent colors 0 - 3.
SEtcolor ..I.......... 'I' can be either 'H' or 'L'.
If 'H' is substituted for 'I' in the 'I' parameter of 'X', then the
background color is equal to the background color + 16 as in BASIC.
SEtcolor ....Y I...... Is the "standard" way of entering a background
color.
SEtcolor ........(Z) I 'I' can be either 'H' or 'L'.
If 'H' is substituted for 'I' in the 'I' parameter of (Z), then PALETTE
one(1) is selected.
If 'L' is substituted for 'I' in the 'I' parameter of (Z), then PALETTE
zero(0) is selected.